<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
    <script type="text/javascript" src="../js/dayjs.min.js"></script>
</head>

<body>
    <div id="root">
        <h1>{{name}}</h1>
        <input type="text" v-model="rawId">
        <p>{{rawId|myFilter}}</p>
        <button @click="btn">点击</button>
    </div>
    <script>
        new Vue({
            el: '#root',
            data: {
                name: 'aaa',
                rawId: "hello"
            },
            methods: {
                btn() {
                    console.log("aajnha")
                }
            },
            filters: {
                myFilter: function (value) {
                    return value + "!"
                }
            }
        })
    </script>
</body>

</html>